<!-- xml version="1.0" encoding="utf-8" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<title>De Bello Gallico</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link href="../flashcard.css" rel="stylesheet" type="text/css">
</head>


<script type="text/javascript">
var sentences = [
  [ ["Caesari", "cum", "id", "nuntiatum", "esset,", "eos", "per", "provinciam", "nostram", "iter", "facere", "conari,"],
    ["To-Caesar", "when", "that", "having-been-annonnced", "was,", "those", "through", "province", "our", "journey", "to-make", "to-be-attempting,"] ],
  [ ["maturat", "ab", "urbe", "proficisci,", "et", "quam", "maximis", "potest", "itineribus", "in", "Galliam", "ulteriorem", "contendit", "et", "ad", "Genavam", "pervenit."],
    ["he-hastens", "from", "city", "forth-to-set,", "and", "(as)", "by-greatest", "he-can", "marches", "into", "Gaul", "Farther", "he-travels-in-haste", "and", "to", "Geneva", "through-comes."] ],
  [ ["Provinciae", "toti", "quam", "maximum", "potest", "militum", "numerum", "imperat", "(erat", "omnino", "in", "Gallia", "ulteriore", "legio", "una),"],
    ["To-province", "entire", "(as)", "greatest", "he-can", "of-soldiers", "[the]-number", "he-gives-orders-for", "(there-was", "altogether", "in", "Gaul", "Farther", "legion", "one),"] ],
  [ ["pontem", "qui", "erat", "ad", "Genavam", "iubet", "rescindi."],
    ["[the]-bridge", "which", "was", "at", "Geneva", "he-commands", "to-be-cut-away."] ],
  [ ["Vbi", "de", "eius", "adventu", "Helvetii", "certiores", "facti", "sunt,"],
    ["When", "concerning", "that-one’s", "coming", "Helvetii", "more-certain", "having-been-made", "are,"] ],
  [ ["legatos", "ad", "eum", "mittunt", "nobilissimos", "civitatis,"],
    ["legates", "to", "him", "they-send", "[the]-most-noble", "of-[the]-state,"] ],
  [ ["cuius", "legationis", "Nammeius", "et", "Verucloetius", "principem", "locum", "obtinebant,"],
    ["of-which", "legation", "Nammeius", "and", "Verucloctius", "chief", "place", "held,"] ],
  [ ["qui", "dicerent", "sibi", "esse", "in", "animo", "sine", "ullo", "maleficio", "iter", "per", "provinciam", "facere,"],
    ["who", "were-to-say,", "‘to-themselves", "to-be", "in", "mind", "without", "any", "wrong-doing", "march", "through", "province", "to-make,"] ],
  [ ["propterea", "quod", "aliud", "iter", "haberent", "nullum:", "rogare,", "ut", "eius", "voluntate", "id", "sibi", "facere", "liceat."],
    ["because-of-this", "that", "other", "route", "had-they", "none:", "to-ask,", "that", "of-that-one", "by-consent", "that", "to-themselves", "to-do", "[it]-maybe-allowed.’"] ],
  [ ["Caesar,", "quod", "memoria", "tenebat", "L.", "Cassium", "consulem", "occisum", "exercitumque", "eius", "ab", "Helvetiis", "pulsum", "et", "sub", "iugum", "missum,"],
    ["Caesar,", "because", "in-memory", "he-kept", "Lucius", "Cassius", "consul", "killed", "army-also", "of-that-one", "by", "Helvetii", "beaten", "and", "under", "yoke", "sent,"] ],
  [ ["concedendum", "non", "putabat;"],
    ["(it)-to-be-granted", "(to-be)-not", "thought;"] ],
  [ ["neque", "homines", "inimico", "animo,", "data", "facultate", "per", "provinciam", "itineris", "faciendi,"],
    ["not-and", "men", "in-unfriendly", "mood,", "given-having-been", "opportunity", "through", "province", "of-march", "to-be-made,"] ],
  [ ["temperaturos", "ab", "iniuria", "et", "maleficio", "existimabat."],
    ["about-to-abstain", "(to_be)_from", "injury", "and", "wrong-doing", "he-thought."] ],
  [ ["Tamen,", "ut", "spatium", "intercedere", "posset,", "dum", "milites", "quos", "imperaverat", "convenirent,"],
    ["Nevertheless,", "that", "space", "intervene", "might,", "until", "soldiers", "whom", "he-had-ordered", "should-assemble,"] ],
  [ ["legatis", "respondit", "diem", "se", "ad", "deliberandum", "sumpturum:"],
    ["to-legates", "he-replied", "day", "himself", "for", "deliberating", "about-to-take_(to-be):"] ],
  [ ["si", "quid", "vellent,", "ad", "Id.", "April,", "reverterentur."],
    ["if", "anything", "they-should-wish,", "at", "[the]-Ides", "April,", "they-might-return."] ]
];

var i = 0;
var j = 0;

var shown = 0;

function updateVoc() {
	
	var sentence = "";
	
	for(n = 0; n < sentences[i][0].length; n++) {
		if (n == j) {
			sentence += ' <span class="curword">' + sentences[i][0][n] + "</span>";
		} else {
			sentence += " " + sentences[i][0][n];
		}
	}
	
	document.getElementById('v3').innerHTML = sentence;
	
	if (shown == 0) {
		document.getElementById('v1').innerHTML = "";
	} else {
		document.getElementById('v1').innerHTML = sentences[i][1][j];
	}
}

function next() {
	shown++;
	if (shown > 1) {
		shown = 0;
		j++;
		if (j >= sentences[i][0].length) {
			j = 0;
			i++;
			if (i >= sentences.length) {
				i = 0;
				alert('All done!');
			}
		}
	}
	updateVoc();
}

function prev() {
	shown--;
	if (shown < 0) {
		shown = 1;
		j--;
		
		if (j < 0) {
			i--;
			if (i < 0) {
				i = sentences.length - 1;
				alert('All done!');
			}
			j = sentences[i][0].length - 1;
		}
	}
	
	updateVoc();
}

</script>

<body onload="updateVoc()">
<h1 style="text-align:center; color: #60B0C0;">Liber I - Caput VII</h1>

<div class="center">
<div id="v3" class="v3"></div>
<div id="v2" class="v2">&nbsp;</div>
<div id="v1" class="v1"></div>


<a href="#" class="button" id="btnprev" onclick="prev()" accesskey="p">&lt;&lt;</a>
<a href="#" class="button" id="btnnext" onclick="next()" accesskey="n">&gt;&gt;</a>


</div>
</body>
</html>
